import React, { Component } from 'react'
import { Link, NavLink } from 'react-router-dom'
import './Aside.css'

export default class Aside extends Component {
  render() {
    return (
      <div className="Aside">
        <Link className="route-link" to="/parameter">parameter</Link>

        {/* NavLink选中的路由会该标签添加一个active样式，可以通过activeClassName修改 */}
        <NavLink className="route-link" activeClassName="route-active" to="/home">Home</NavLink>
        <NavLink className="route-link" to="/about">About</NavLink>
      </div>
    )
  }
}
